


<div id="searchresults">
  <g:if test="${searchresults}">
    <br/>
    <h3>Click on the Name to reward</h3>
      <div class="yui-skin-sam">
    <gui:dataTable 
      id="UserDatatable"
      draggableColumns="true"
      columnDefs="[
      [key:'id', sortable:true, resizeable: true, label:'ID'],
      [key:'name', sortable:true, resizeable: true, label:'Name'],
      [key:'username', sortable:true, resizeable: true, label:'Username'],
      [key:'lastname', sortable:true, resizeable: true, label:'Last Name'],
      [key:'address1', sortable:false, resizeable: true, label:'Address'],
      [key:'postal', type:'number', sortable:true, resizeable: true, label: 'postal'],
      ]"
      paginatorConfig="[
      template:'{PreviousPageLink} {PageLinks} {NextPageLink} {CurrentPageReport}',
      pageReportTemplate:'{totalRecords} total records'
      ]"
      controller="voucher"
      action="userDataAsJSON"
      resultsList="results"
      params='[searchresults:"${searchresults}"]'
      rowExpansion="false"
      rowsPerPage="8" 
      />
      </div>
    </br>
    
  </g:if>
  <g:else>
    <br/>
    <h3>Search Results</h3>
    0 result matched the search</br>
    or you have not input search keys
    </g:else>
</div>